<template>
  <div id="item-component">
    <div class="item">
      <div class="pic">
        <van-icon name="comment-circle" />
      </div>
      <div class="text">我的消息</div>
    </div>
    <div class="item">
      <div class="pic">
        <van-icon name="gold-coin-o" />
      </div>
      <div class="text">积分商城</div>
    </div>
    <div class="item">
      <div class="pic">
        <van-icon name="gem-o" />
      </div>
      <div class="text">会员卡</div>
    </div>
    <div class="item">
      <div class="pic">
        <van-icon name="shopping-cart-o" />
      </div>
      <div class="text">我的购物车</div>
    </div>
    <div class="item">
      <div class="pic">
        <van-icon name="bag-o" />
      </div>
      <div class="text">下载购物App</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Item",
}
</script>

<style lang="less" scoped>
#item-component {
  margin-top: 15px;
}
.item {
  display: flex;
  height: 37px;
  line-height: 37px;
  background-color: #fff;
  .pic {
    flex: 2;
    text-align: center;
    margin-top: 5px;
    .van-icon {
      font-size: 25px;
      color: #ff8198;
    }
  }
  .text {
    flex: 8;
    border-bottom: 1px solid #ccc;
  }
}

.item:nth-of-type(3n) {
  margin-bottom: 15px;
}
.item:nth-of-type(3n) .text {
  border-bottom: none;
}
</style>
